<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>par_trajectory_planning: /home/wouter/ros_packages/thp-pj2-08/par_trajectory_planning/src/par_trajectory_planning/msg/_commands.py Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>

<table border="0">
<tr><td valign="top" style="border-right: 1px solid #333; padding-right: 10px;" >
<p>
Project: <a href="http://ros.org/wiki/par_trajectory_planning">par_trajectory_planning</a>
</p>
<p>
License: BSD
</p>
<p>
Dependencies: 
<ul>
  <li>std_msgs</li>
  <li>roscpp</li>
</ul>
</p>
<p>
Used by:
None<br />
</p>
<p>
<a href="../../index.html">All Packages</a>
</p>

</div>
</td><td valign="top" style="padding-left: 10px;" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/wouter/ros_packages/thp-pj2-08/par_trajectory_planning/src/par_trajectory_planning/msg/_commands.py</h1>  </div>
</div>
<div class="contents">
<a href="__commands_8py.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespacepar__trajectory__planning_1_1msg_1_1__commands.html">00001</a> <span class="stringliteral">&quot;&quot;&quot;autogenerated by genmsg_py from commands.msg. Do not edit.&quot;&quot;&quot;</span>
<a name="l00002"></a>00002 <span class="keyword">import</span> roslib.message
<a name="l00003"></a>00003 <span class="keyword">import</span> struct
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="keyword">import</span> roslib.msg
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html">00007</a> <span class="keyword">class </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html">commands</a>(roslib.message.Message):
<a name="l00008"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a4d56e50f826e48017d166d18ac3bbc8a">00008</a>   _md5sum = <span class="stringliteral">&quot;33a00a5101ce7a60080cc490dfd2e3ca&quot;</span>
<a name="l00009"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a61de01de498310f61f5cc30373e35187">00009</a>   _type = <span class="stringliteral">&quot;par_trajectory_planning/commands&quot;</span>
<a name="l00010"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ac76d0674a8338ac28e4ae81283c47229">00010</a>   _has_header = <span class="keyword">True</span> <span class="comment">#flag to mark the presence of a Header object</span>
<a name="l00011"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a51b5da515912a8d1a760d118e3ac8e58">00011</a>   _full_text = <span class="stringliteral">&quot;&quot;&quot;Header header</span>
<a name="l00012"></a>00012 <span class="stringliteral">int32 option</span>
<a name="l00013"></a>00013 <span class="stringliteral">uint16[] abs_pos</span>
<a name="l00014"></a>00014 <span class="stringliteral">float64[] xyz_pos</span>
<a name="l00015"></a>00015 <span class="stringliteral">uint16[] operating_mode</span>
<a name="l00016"></a>00016 <span class="stringliteral">int32 repeat_motions</span>
<a name="l00017"></a>00017 <span class="stringliteral">uint16 acc_up</span>
<a name="l00018"></a>00018 <span class="stringliteral">uint16 acc_lo</span>
<a name="l00019"></a>00019 <span class="stringliteral">uint16 dec_up</span>
<a name="l00020"></a>00020 <span class="stringliteral">uint16 dec_lo</span>
<a name="l00021"></a>00021 <span class="stringliteral">uint16 op_speed_up</span>
<a name="l00022"></a>00022 <span class="stringliteral">uint16 op_speed_lo</span>
<a name="l00023"></a>00023 <span class="stringliteral">uint16 st_speed_up</span>
<a name="l00024"></a>00024 <span class="stringliteral">uint16 st_speed_lo</span>
<a name="l00025"></a>00025 <span class="stringliteral"></span>
<a name="l00026"></a>00026 <span class="stringliteral">================================================================================</span>
<a name="l00027"></a>00027 <span class="stringliteral">MSG: roslib/Header</span>
<a name="l00028"></a>00028 <span class="stringliteral"># Standard metadata for higher-level stamped data types.</span>
<a name="l00029"></a>00029 <span class="stringliteral"># This is generally used to communicate timestamped data </span>
<a name="l00030"></a>00030 <span class="stringliteral"># in a particular coordinate frame.</span>
<a name="l00031"></a>00031 <span class="stringliteral"># </span>
<a name="l00032"></a>00032 <span class="stringliteral"># sequence ID: consecutively increasing ID </span>
<a name="l00033"></a>00033 <span class="stringliteral">uint32 seq</span>
<a name="l00034"></a>00034 <span class="stringliteral">#Two-integer timestamp that is expressed as:</span>
<a name="l00035"></a>00035 <span class="stringliteral"># * stamp.secs: seconds (stamp_secs) since epoch</span>
<a name="l00036"></a>00036 <span class="stringliteral"># * stamp.nsecs: nanoseconds since stamp_secs</span>
<a name="l00037"></a>00037 <span class="stringliteral"># time-handling sugar is provided by the client library</span>
<a name="l00038"></a>00038 <span class="stringliteral">time stamp</span>
<a name="l00039"></a>00039 <span class="stringliteral">#Frame this data is associated with</span>
<a name="l00040"></a>00040 <span class="stringliteral"># 0: no frame</span>
<a name="l00041"></a>00041 <span class="stringliteral"># 1: global frame</span>
<a name="l00042"></a>00042 <span class="stringliteral">string frame_id</span>
<a name="l00043"></a>00043 <span class="stringliteral"></span>
<a name="l00044"></a>00044 <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00045"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#af248d82d48047d2800db78dd160e9cf3">00045</a>   __slots__ = [<span class="stringliteral">&#39;header&#39;</span>,<span class="stringliteral">&#39;option&#39;</span>,<span class="stringliteral">&#39;abs_pos&#39;</span>,<span class="stringliteral">&#39;xyz_pos&#39;</span>,<span class="stringliteral">&#39;operating_mode&#39;</span>,<span class="stringliteral">&#39;repeat_motions&#39;</span>,<span class="stringliteral">&#39;acc_up&#39;</span>,<span class="stringliteral">&#39;acc_lo&#39;</span>,<span class="stringliteral">&#39;dec_up&#39;</span>,<span class="stringliteral">&#39;dec_lo&#39;</span>,<span class="stringliteral">&#39;op_speed_up&#39;</span>,<span class="stringliteral">&#39;op_speed_lo&#39;</span>,<span class="stringliteral">&#39;st_speed_up&#39;</span>,<span class="stringliteral">&#39;st_speed_lo&#39;</span>]
<a name="l00046"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a5d37c626f0eb10d6e43a6f1c7ba4900c">00046</a>   _slot_types = [<span class="stringliteral">&#39;Header&#39;</span>,<span class="stringliteral">&#39;int32&#39;</span>,<span class="stringliteral">&#39;uint16[]&#39;</span>,<span class="stringliteral">&#39;float64[]&#39;</span>,<span class="stringliteral">&#39;uint16[]&#39;</span>,<span class="stringliteral">&#39;int32&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>,<span class="stringliteral">&#39;uint16&#39;</span>]
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a439b4e393670a7977a06692d01b0b6b4">00048</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a439b4e393670a7977a06692d01b0b6b4">__init__</a>(self, *args, **kwds):
<a name="l00049"></a>00049     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00050"></a>00050 <span class="stringliteral">    Constructor. Any message fields that are implicitly/explicitly</span>
<a name="l00051"></a>00051 <span class="stringliteral">    set to None will be assigned a default value. The recommend</span>
<a name="l00052"></a>00052 <span class="stringliteral">    use is keyword arguments as this is more robust to future message</span>
<a name="l00053"></a>00053 <span class="stringliteral">    changes.  You cannot mix in-order arguments and keyword arguments.</span>
<a name="l00054"></a>00054 <span class="stringliteral">    </span>
<a name="l00055"></a>00055 <span class="stringliteral">    The available fields are:</span>
<a name="l00056"></a>00056 <span class="stringliteral">       header,option,abs_pos,xyz_pos,operating_mode,repeat_motions,acc_up,acc_lo,dec_up,dec_lo,op_speed_up,op_speed_lo,st_speed_up,st_speed_lo</span>
<a name="l00057"></a>00057 <span class="stringliteral">    </span>
<a name="l00058"></a>00058 <span class="stringliteral">    @param args: complete set of field values, in .msg order</span>
<a name="l00059"></a>00059 <span class="stringliteral">    @param kwds: use keyword arguments corresponding to message field names</span>
<a name="l00060"></a>00060 <span class="stringliteral">    to set specific fields. </span>
<a name="l00061"></a>00061 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00062"></a>00062     <span class="keywordflow">if</span> args <span class="keywordflow">or</span> kwds:
<a name="l00063"></a>00063       super(commands, self).__init__(*args, **kwds)
<a name="l00064"></a>00064       <span class="comment">#message fields cannot be None, assign default values for those that are</span>
<a name="l00065"></a>00065       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00066"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">00066</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> = roslib.msg._Header.Header()
<a name="l00067"></a>00067       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00068"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">00068</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a> = 0
<a name="l00069"></a>00069       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00070"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">00070</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a> = []
<a name="l00071"></a>00071       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00072"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">00072</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a> = []
<a name="l00073"></a>00073       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00074"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">00074</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a> = []
<a name="l00075"></a>00075       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a6b8ad997bd1a7f809feda285694364aa">repeat_motions</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00076"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a6b8ad997bd1a7f809feda285694364aa">00076</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a6b8ad997bd1a7f809feda285694364aa">repeat_motions</a> = 0
<a name="l00077"></a>00077       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aac31306d3bf94523d2df200a009e1bf2">acc_up</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00078"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aac31306d3bf94523d2df200a009e1bf2">00078</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aac31306d3bf94523d2df200a009e1bf2">acc_up</a> = 0
<a name="l00079"></a>00079       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a4cd64c99ebae16ff343e2ea6cecff262">acc_lo</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00080"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a4cd64c99ebae16ff343e2ea6cecff262">00080</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a4cd64c99ebae16ff343e2ea6cecff262">acc_lo</a> = 0
<a name="l00081"></a>00081       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8021cfb610f7b1bc01604e02de3970c5">dec_up</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00082"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8021cfb610f7b1bc01604e02de3970c5">00082</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8021cfb610f7b1bc01604e02de3970c5">dec_up</a> = 0
<a name="l00083"></a>00083       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a149cf03c1d0a0ec3a4e15c69a82132ee">dec_lo</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00084"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a149cf03c1d0a0ec3a4e15c69a82132ee">00084</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a149cf03c1d0a0ec3a4e15c69a82132ee">dec_lo</a> = 0
<a name="l00085"></a>00085       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a3f422df255120319d443fcf5ebab33c5">op_speed_up</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00086"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a3f422df255120319d443fcf5ebab33c5">00086</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a3f422df255120319d443fcf5ebab33c5">op_speed_up</a> = 0
<a name="l00087"></a>00087       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a65b5654c889f58650775797f36c3f0ed">op_speed_lo</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00088"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a65b5654c889f58650775797f36c3f0ed">00088</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a65b5654c889f58650775797f36c3f0ed">op_speed_lo</a> = 0
<a name="l00089"></a>00089       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afd74014c9d85c8488357c5e71bd5e414">st_speed_up</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00090"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afd74014c9d85c8488357c5e71bd5e414">00090</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afd74014c9d85c8488357c5e71bd5e414">st_speed_up</a> = 0
<a name="l00091"></a>00091       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a2290ef57c0b82b9c3088498e86f8a9f2">st_speed_lo</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00092"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a2290ef57c0b82b9c3088498e86f8a9f2">00092</a>         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a2290ef57c0b82b9c3088498e86f8a9f2">st_speed_lo</a> = 0
<a name="l00093"></a>00093     <span class="keywordflow">else</span>:
<a name="l00094"></a>00094       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> = roslib.msg._Header.Header()
<a name="l00095"></a>00095       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a> = 0
<a name="l00096"></a>00096       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a> = []
<a name="l00097"></a>00097       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a> = []
<a name="l00098"></a>00098       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a> = []
<a name="l00099"></a>00099       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a6b8ad997bd1a7f809feda285694364aa">repeat_motions</a> = 0
<a name="l00100"></a>00100       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aac31306d3bf94523d2df200a009e1bf2">acc_up</a> = 0
<a name="l00101"></a>00101       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a4cd64c99ebae16ff343e2ea6cecff262">acc_lo</a> = 0
<a name="l00102"></a>00102       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8021cfb610f7b1bc01604e02de3970c5">dec_up</a> = 0
<a name="l00103"></a>00103       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a149cf03c1d0a0ec3a4e15c69a82132ee">dec_lo</a> = 0
<a name="l00104"></a>00104       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a3f422df255120319d443fcf5ebab33c5">op_speed_up</a> = 0
<a name="l00105"></a>00105       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a65b5654c889f58650775797f36c3f0ed">op_speed_lo</a> = 0
<a name="l00106"></a>00106       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afd74014c9d85c8488357c5e71bd5e414">st_speed_up</a> = 0
<a name="l00107"></a>00107       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a2290ef57c0b82b9c3088498e86f8a9f2">st_speed_lo</a> = 0
<a name="l00108"></a>00108 
<a name="l00109"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afa71bd1f6beff76112298c7be510ec9f">00109</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#afa71bd1f6beff76112298c7be510ec9f">_get_types</a>(self):
<a name="l00110"></a>00110     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00111"></a>00111 <span class="stringliteral">    internal API method</span>
<a name="l00112"></a>00112 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00113"></a>00113     <span class="keywordflow">return</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a5d37c626f0eb10d6e43a6f1c7ba4900c">_slot_types</a>
<a name="l00114"></a>00114 
<a name="l00115"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a0a447e0630c10ca56bde99a2dd49f4a7">00115</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a0a447e0630c10ca56bde99a2dd49f4a7">serialize</a>(self, buff):
<a name="l00116"></a>00116     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00117"></a>00117 <span class="stringliteral">    serialize message into buffer</span>
<a name="l00118"></a>00118 <span class="stringliteral">    @param buff: buffer</span>
<a name="l00119"></a>00119 <span class="stringliteral">    @type  buff: StringIO</span>
<a name="l00120"></a>00120 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00121"></a>00121     <span class="keywordflow">try</span>:
<a name="l00122"></a>00122       _x = self
<a name="l00123"></a>00123       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
<a name="l00124"></a>00124       _x = self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a>.frame_id
<a name="l00125"></a>00125       length = len(_x)
<a name="l00126"></a>00126       buff.write(struct.pack(<span class="stringliteral">&#39;&lt;I%ss&#39;</span>%length, length, _x))
<a name="l00127"></a>00127       buff.write(_struct_i.pack(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a>))
<a name="l00128"></a>00128       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a>)
<a name="l00129"></a>00129       buff.write(_struct_I.pack(length))
<a name="l00130"></a>00130       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00131"></a>00131       buff.write(struct.pack(pattern, *self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a>))
<a name="l00132"></a>00132       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a>)
<a name="l00133"></a>00133       buff.write(_struct_I.pack(length))
<a name="l00134"></a>00134       pattern = <span class="stringliteral">&#39;&lt;%sd&#39;</span>%length
<a name="l00135"></a>00135       buff.write(struct.pack(pattern, *self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a>))
<a name="l00136"></a>00136       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a>)
<a name="l00137"></a>00137       buff.write(_struct_I.pack(length))
<a name="l00138"></a>00138       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00139"></a>00139       buff.write(struct.pack(pattern, *self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a>))
<a name="l00140"></a>00140       _x = self
<a name="l00141"></a>00141       buff.write(_struct_i8H.pack(_x.repeat_motions, _x.acc_up, _x.acc_lo, _x.dec_up, _x.dec_lo, _x.op_speed_up, _x.op_speed_lo, _x.st_speed_up, _x.st_speed_lo))
<a name="l00142"></a>00142     <span class="keywordflow">except</span> struct.error, se: self._check_types(se)
<a name="l00143"></a>00143     <span class="keywordflow">except</span> TypeError, te: self._check_types(te)
<a name="l00144"></a>00144 
<a name="l00145"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a841e0a425cc909e4cff5b15b47347728">00145</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a841e0a425cc909e4cff5b15b47347728">deserialize</a>(self, str):
<a name="l00146"></a>00146     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00147"></a>00147 <span class="stringliteral">    unpack serialized message in str into this message instance</span>
<a name="l00148"></a>00148 <span class="stringliteral">    @param str: byte array of serialized message</span>
<a name="l00149"></a>00149 <span class="stringliteral">    @type  str: str</span>
<a name="l00150"></a>00150 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00151"></a>00151     <span class="keywordflow">try</span>:
<a name="l00152"></a>00152       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00153"></a>00153         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> = roslib.msg._Header.Header()
<a name="l00154"></a>00154       end = 0
<a name="l00155"></a>00155       _x = self
<a name="l00156"></a>00156       start = end
<a name="l00157"></a>00157       end += 12
<a name="l00158"></a>00158       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
<a name="l00159"></a>00159       start = end
<a name="l00160"></a>00160       end += 4
<a name="l00161"></a>00161       (length,) = _struct_I.unpack(str[start:end])
<a name="l00162"></a>00162       start = end
<a name="l00163"></a>00163       end += length
<a name="l00164"></a>00164       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a>.frame_id = str[start:end]
<a name="l00165"></a>00165       start = end
<a name="l00166"></a>00166       end += 4
<a name="l00167"></a>00167       (self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a>,) = _struct_i.unpack(str[start:end])
<a name="l00168"></a>00168       start = end
<a name="l00169"></a>00169       end += 4
<a name="l00170"></a>00170       (length,) = _struct_I.unpack(str[start:end])
<a name="l00171"></a>00171       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00172"></a>00172       start = end
<a name="l00173"></a>00173       end += struct.calcsize(pattern)
<a name="l00174"></a>00174       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a> = struct.unpack(pattern, str[start:end])
<a name="l00175"></a>00175       start = end
<a name="l00176"></a>00176       end += 4
<a name="l00177"></a>00177       (length,) = _struct_I.unpack(str[start:end])
<a name="l00178"></a>00178       pattern = <span class="stringliteral">&#39;&lt;%sd&#39;</span>%length
<a name="l00179"></a>00179       start = end
<a name="l00180"></a>00180       end += struct.calcsize(pattern)
<a name="l00181"></a>00181       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a> = struct.unpack(pattern, str[start:end])
<a name="l00182"></a>00182       start = end
<a name="l00183"></a>00183       end += 4
<a name="l00184"></a>00184       (length,) = _struct_I.unpack(str[start:end])
<a name="l00185"></a>00185       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00186"></a>00186       start = end
<a name="l00187"></a>00187       end += struct.calcsize(pattern)
<a name="l00188"></a>00188       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a> = struct.unpack(pattern, str[start:end])
<a name="l00189"></a>00189       _x = self
<a name="l00190"></a>00190       start = end
<a name="l00191"></a>00191       end += 20
<a name="l00192"></a>00192       (_x.repeat_motions, _x.acc_up, _x.acc_lo, _x.dec_up, _x.dec_lo, _x.op_speed_up, _x.op_speed_lo, _x.st_speed_up, _x.st_speed_lo,) = _struct_i8H.unpack(str[start:end])
<a name="l00193"></a>00193       <span class="keywordflow">return</span> self
<a name="l00194"></a>00194     <span class="keywordflow">except</span> struct.error, e:
<a name="l00195"></a>00195       <span class="keywordflow">raise</span> roslib.message.DeserializationError(e) <span class="comment">#most likely buffer underfill</span>
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 
<a name="l00198"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a937cfd5fcf4477476df232d42785dee7">00198</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a937cfd5fcf4477476df232d42785dee7">serialize_numpy</a>(self, buff, numpy):
<a name="l00199"></a>00199     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00200"></a>00200 <span class="stringliteral">    serialize message with numpy array types into buffer</span>
<a name="l00201"></a>00201 <span class="stringliteral">    @param buff: buffer</span>
<a name="l00202"></a>00202 <span class="stringliteral">    @type  buff: StringIO</span>
<a name="l00203"></a>00203 <span class="stringliteral">    @param numpy: numpy python module</span>
<a name="l00204"></a>00204 <span class="stringliteral">    @type  numpy module</span>
<a name="l00205"></a>00205 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00206"></a>00206     <span class="keywordflow">try</span>:
<a name="l00207"></a>00207       _x = self
<a name="l00208"></a>00208       buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
<a name="l00209"></a>00209       _x = self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a>.frame_id
<a name="l00210"></a>00210       length = len(_x)
<a name="l00211"></a>00211       buff.write(struct.pack(<span class="stringliteral">&#39;&lt;I%ss&#39;</span>%length, length, _x))
<a name="l00212"></a>00212       buff.write(_struct_i.pack(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a>))
<a name="l00213"></a>00213       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a>)
<a name="l00214"></a>00214       buff.write(_struct_I.pack(length))
<a name="l00215"></a>00215       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00216"></a>00216       buff.write(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a>.tostring())
<a name="l00217"></a>00217       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a>)
<a name="l00218"></a>00218       buff.write(_struct_I.pack(length))
<a name="l00219"></a>00219       pattern = <span class="stringliteral">&#39;&lt;%sd&#39;</span>%length
<a name="l00220"></a>00220       buff.write(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a>.tostring())
<a name="l00221"></a>00221       length = len(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a>)
<a name="l00222"></a>00222       buff.write(_struct_I.pack(length))
<a name="l00223"></a>00223       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00224"></a>00224       buff.write(self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a>.tostring())
<a name="l00225"></a>00225       _x = self
<a name="l00226"></a>00226       buff.write(_struct_i8H.pack(_x.repeat_motions, _x.acc_up, _x.acc_lo, _x.dec_up, _x.dec_lo, _x.op_speed_up, _x.op_speed_lo, _x.st_speed_up, _x.st_speed_lo))
<a name="l00227"></a>00227     <span class="keywordflow">except</span> struct.error, se: self._check_types(se)
<a name="l00228"></a>00228     <span class="keywordflow">except</span> TypeError, te: self._check_types(te)
<a name="l00229"></a>00229 
<a name="l00230"></a><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a1f66b25ef8fb7f1d9e1b1bd156b6843c">00230</a>   <span class="keyword">def </span><a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a1f66b25ef8fb7f1d9e1b1bd156b6843c">deserialize_numpy</a>(self, str, numpy):
<a name="l00231"></a>00231     <span class="stringliteral">&quot;&quot;&quot;</span>
<a name="l00232"></a>00232 <span class="stringliteral">    unpack serialized message in str into this message instance using numpy for array types</span>
<a name="l00233"></a>00233 <span class="stringliteral">    @param str: byte array of serialized message</span>
<a name="l00234"></a>00234 <span class="stringliteral">    @type  str: str</span>
<a name="l00235"></a>00235 <span class="stringliteral">    @param numpy: numpy python module</span>
<a name="l00236"></a>00236 <span class="stringliteral">    @type  numpy: module</span>
<a name="l00237"></a>00237 <span class="stringliteral">    &quot;&quot;&quot;</span>
<a name="l00238"></a>00238     <span class="keywordflow">try</span>:
<a name="l00239"></a>00239       <span class="keywordflow">if</span> self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:
<a name="l00240"></a>00240         self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a> = roslib.msg._Header.Header()
<a name="l00241"></a>00241       end = 0
<a name="l00242"></a>00242       _x = self
<a name="l00243"></a>00243       start = end
<a name="l00244"></a>00244       end += 12
<a name="l00245"></a>00245       (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
<a name="l00246"></a>00246       start = end
<a name="l00247"></a>00247       end += 4
<a name="l00248"></a>00248       (length,) = _struct_I.unpack(str[start:end])
<a name="l00249"></a>00249       start = end
<a name="l00250"></a>00250       end += length
<a name="l00251"></a>00251       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#aaab53f699a6b897ff9b3d951c4ca48eb">header</a>.frame_id = str[start:end]
<a name="l00252"></a>00252       start = end
<a name="l00253"></a>00253       end += 4
<a name="l00254"></a>00254       (self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7fdba68cd340d7ebecf444bfc10eb357">option</a>,) = _struct_i.unpack(str[start:end])
<a name="l00255"></a>00255       start = end
<a name="l00256"></a>00256       end += 4
<a name="l00257"></a>00257       (length,) = _struct_I.unpack(str[start:end])
<a name="l00258"></a>00258       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00259"></a>00259       start = end
<a name="l00260"></a>00260       end += struct.calcsize(pattern)
<a name="l00261"></a>00261       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#ad0bc01f0d395c795a62993a9f6553caa">abs_pos</a> = numpy.frombuffer(str[start:end], dtype=numpy.uint16, count=length)
<a name="l00262"></a>00262       start = end
<a name="l00263"></a>00263       end += 4
<a name="l00264"></a>00264       (length,) = _struct_I.unpack(str[start:end])
<a name="l00265"></a>00265       pattern = <span class="stringliteral">&#39;&lt;%sd&#39;</span>%length
<a name="l00266"></a>00266       start = end
<a name="l00267"></a>00267       end += struct.calcsize(pattern)
<a name="l00268"></a>00268       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a7f07e7783df4dfc69031e4e8e5b09af9">xyz_pos</a> = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
<a name="l00269"></a>00269       start = end
<a name="l00270"></a>00270       end += 4
<a name="l00271"></a>00271       (length,) = _struct_I.unpack(str[start:end])
<a name="l00272"></a>00272       pattern = <span class="stringliteral">&#39;&lt;%sH&#39;</span>%length
<a name="l00273"></a>00273       start = end
<a name="l00274"></a>00274       end += struct.calcsize(pattern)
<a name="l00275"></a>00275       self.<a class="code" href="classpar__trajectory__planning_1_1msg_1_1__commands_1_1commands.html#a8d3213df584c2184d6ba18973ba4b666">operating_mode</a> = numpy.frombuffer(str[start:end], dtype=numpy.uint16, count=length)
<a name="l00276"></a>00276       _x = self
<a name="l00277"></a>00277       start = end
<a name="l00278"></a>00278       end += 20
<a name="l00279"></a>00279       (_x.repeat_motions, _x.acc_up, _x.acc_lo, _x.dec_up, _x.dec_lo, _x.op_speed_up, _x.op_speed_lo, _x.st_speed_up, _x.st_speed_lo,) = _struct_i8H.unpack(str[start:end])
<a name="l00280"></a>00280       <span class="keywordflow">return</span> self
<a name="l00281"></a>00281     <span class="keywordflow">except</span> struct.error, e:
<a name="l00282"></a>00282       <span class="keywordflow">raise</span> roslib.message.DeserializationError(e) <span class="comment">#most likely buffer underfill</span>
<a name="l00283"></a>00283 
<a name="l00284"></a><a class="code" href="namespacepar__trajectory__planning_1_1msg_1_1__commands.html#ae252f132bd14e2cfb7159b1665b7609f">00284</a> _struct_I = roslib.message.struct_I
<a name="l00285"></a><a class="code" href="namespacepar__trajectory__planning_1_1msg_1_1__commands.html#a2b3aea1f705a9dfaf230e3b218ded62d">00285</a> _struct_i = struct.Struct(<span class="stringliteral">&quot;&lt;i&quot;</span>)
<a name="l00286"></a><a class="code" href="namespacepar__trajectory__planning_1_1msg_1_1__commands.html#ad50cc958d005da5c91274d455b393b08">00286</a> _struct_3I = struct.Struct(<span class="stringliteral">&quot;&lt;3I&quot;</span>)
<a name="l00287"></a><a class="code" href="namespacepar__trajectory__planning_1_1msg_1_1__commands.html#a46198149a2c3847422b0467ae16274a4">00287</a> _struct_i8H = struct.Struct(<span class="stringliteral">&quot;&lt;i8H&quot;</span>)
</pre></div></div>
</div>
</td></tr></table>

<hr size="1"><div style="align: right;">
<a href="http://ros.org/wiki/par_trajectory_planning">par_trajectory_planning</a><br />
Author(s): Wouter van Teijlingen</br />
<small>autogenerated on Wed Jun 8 2011 17:11:45</small>
</div>
</body>
</html>
